
<div class="list-course content">
<?php

  $courses = elgg_get_golf_course();
  foreach ($courses as $course) {
  	  echo "<div class='course' onclick=\"onViewCourse('$course->golf_course_id','$course->course_name');\">";	
  	  echo "<span class='title-course'>$course->course_name</span>";
  	  //echo $course->golf_course_id;
  	  echo "<span class='hole'>18</span>";
  	  echo "</div>";
  }
  ?>
 </div>
 
 